package homework;

public class ExtendsTest {
    public static void main(String[] args) {
        Person zs = new Person("张三",23,"北京");
        zs.eat();
        zs.sleep();
        zs.sayHi();

        Student ls = new Student("李四",25,"山东","jsd2507","001");
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.study();

        Teacher ww = new Teacher("王五",35,"浙江",7000);
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.teach();

        Doctor zl = new Doctor("赵六",45,"山西","主任医师");
        zl.eat();
        zl.sleep();
        zl.sayHi();
        zl.cut();
    }
}
